package com.mingtai.design.pattern.creationalming.abstractfactory;

/**
 * @description:
 * @author: mingtai
 * @createDate: 1:11 2021/1/9
 * @version: 1.0
 */

/**
 * 声明java课程的工厂，继承了课程工厂，
 * 用于生产java的相关产品(产品族) 比如：JavaVideo JavaArticle (避免在应用层出错，与应用层解耦)
 * 同样可以增加一套python课程工厂
 *
 */
public class JavaCourseFactory implements CourseFactory {

    @Override
    public Video getVideo() {
        return new JavaVideo();
    }

    @Override
    public Article getArticle() {
        return new JavaArticle();
    }
}



